public class test1 {
    static void main() {
        int number=10;
        switch(number) {
            case 1:
                System.out.println("number的值为1");
                break;
                case 10:
                    System.out.println("number的值为10");
                    break;
            case 20:
                System.out.println("number的值为20");
                break;
            default:
                System.out.println("number的值不为1，10，20");
        }
    }
}
